/*
 * @Author: ReinerLau lk850593913@gmail.com
 * @Date: 2022-09-20 17:16:12
 * @LastEditors: ReinerLau lk850593913@gmail.com
 * @LastEditTime: 2022-09-28 12:50:40
 * @FilePath: \robot\src\api\remote-control.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import request from "@/utils/request";

export function patrolingCruise(data) {
  return request({
    url: "/robot-remote-control/v1/upperControl",
    method: "post",
    data: data,
  });
}

export function tvControl(rtsp, button, camereType, speed, ptzPort) {
  return request({
    url: `/robot-remote-control/v1/controlTv/${speed}`,
    method: "get",
    params: {
      rtsp,
      button,
      camereType,
      ptzPort,
    },
  });
}

export function patrolingVoice(params) {
  return request({
    url: "/robot-remote-control/v1/voiceControl",
    method: "get",
    params,
  });
}
